package com.my.lock.v22;

/**
 * Created by Scarlett on 2018/7/31 0031.
 */
public class Counter {
    private volatile int count = 0;

    public void increment() {
        this.count += 1;
    }

    @Override
    public String toString() {
        return "Counter{" +
                "count=" + count +
                '}';
    }
}
